<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>聊天室客户端</title>
	</head>
	<body>
		<h1>聊天室</h1>
		<div id="content" name="name" style="overflow-y: scroll;width: 400px;height: 300px;border: solid;">
        
        
        </div>
		<br />

		<div>
			<input type="text" id="msg" style="width: 200px;"/>
			<button id="submit">提交</button>
		</div>
		<script>
			// js原生语法
			document.querySelector('#submit').addEventListener('click',function(){
				console.log(msg.value)
				let message = msg.value
				// 把这个值传到websocket服务器中
				msg.value=''
			},false)
		</script>
	</body>
</html>